package com.ljx.recruitment.sale.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("tb_access_token")
@AllArgsConstructor
@NoArgsConstructor
public class AccessToken {

    private Long id;

    private String token;

    private Integer tokenType;

    private String tokenParams;

    private Long userId;

    private String url;

    private Date createTime;

    private Date updateTime;

    private Integer status;

    private Integer ver;

    public AccessToken(Integer tokenType, String tokenParams, String token, Long userId, String url) {
        this.tokenType = tokenType;
        this.token = token;
        this.tokenParams = tokenParams;
        this.userId = userId;
        this.url = url;
    }
}
